import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取全部数组
mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,
    [
        {"type":"appde",
    "appCodeName":"EMObjMap",
    "appName":"对象关系",
    "portletCodeName": "LocalByEQ",
    "portletName": "设备部件结构",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emobj-map-local-by-eq-portlet"},
    {"type":"appde",
    "appCodeName":"EMEQWL",
    "appName":"设备运行日志",
    "portletCodeName": "Nearest30DayByEQ",
    "portletName": "最近30天运行",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emeqwl-nearest30-day-by-eq-portlet"},
    {"type":"appde",
    "appCodeName":"EMResItem",
    "appName":"物品资源",
    "portletCodeName": "UsedByItem",
    "portletName": "最近使用记录",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"emres-item-used-by-item-portlet"},
    {"type":"appde",
    "appCodeName":"EMResItem",
    "appName":"物品资源",
    "portletCodeName": "AmountByTypeByEQ",
    "portletName": "物品类型消耗金额",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emres-item-amount-by-type-by-eq-portlet"},
    {"type":"appde",
    "appCodeName":"EMPlan",
    "appName":"计划",
    "portletCodeName": "Info",
    "portletName": "计划信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emplan-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMPlan",
    "appName":"计划",
    "portletCodeName": "EQInfo",
    "portletName": "设备信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emplan-eqinfo-portlet"},
    {"type":"appde",
    "appCodeName":"EMPlan",
    "appName":"计划",
    "portletCodeName": "PersonInfo",
    "portletName": "责任信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emplan-person-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMItem",
    "appName":"物品",
    "portletCodeName": "Supply",
    "portletName": "供应信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emitem-supply-portlet"},
    {"type":"appde",
    "appCodeName":"EMItem",
    "appName":"物品",
    "portletCodeName": "BaseInfo",
    "portletName": "基本信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emitem-base-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMItem",
    "appName":"物品",
    "portletCodeName": "Store",
    "portletName": "库存信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emitem-store-portlet"},
    {"type":"appde",
    "appCodeName":"EMEquip",
    "appName":"设备档案",
    "portletCodeName": "EQNumPie",
    "portletName": "各类型设备数量统计",
    "groupCodeName":"EquipPortletCat",
    "groupName":"设备类统计",
    "portletTYpe":"CHART","componentName":"emequip-eqnum-pie-portlet"},
    {"type":"appde",
    "appCodeName":"EMEquip",
    "appName":"设备档案",
    "portletCodeName": "Info",
    "portletName": "基本信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emequip-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMEquip",
    "appName":"设备档案",
    "portletCodeName": "RunInfo",
    "portletName": "运行信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emequip-run-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMDRWGMap",
    "appName":"文档引用",
    "portletCodeName": "ByEQ",
    "portletName": "文档信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"emdrwgmap-by-eq-portlet"},
    {"type":"appde",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Info",
    "portletName": "基本信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emservice-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Contact",
    "portletName": "联系信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emservice-contact-portlet"},
    {"type":"appde",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Finance",
    "portletName": "财务信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emservice-finance-portlet"},
    {"type":"appde",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "File",
    "portletName": "附件信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emservice-file-portlet"},
    {"type":"appde",
    "appCodeName":"EMPODetail",
    "appName":"订单条目",
    "portletCodeName": "PeDetailLine",
    "portletName": "年度采购金额统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"empodetail-pe-detail-line-portlet"},
    {"type":"appde",
    "appCodeName":"EMRFODE",
    "appName":"现象",
    "portletCodeName": "EditView9",
    "portletName": "现象信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emrfode-edit-view9-portlet"},
    {"type":"appde",
    "appCodeName":"EMRFODE",
    "appName":"现象",
    "portletCodeName": "TabExpView",
    "portletName": "现象明细",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emrfode-tab-exp-view-portlet"},
    {"type":"appde",
    "appCodeName":"EMWPListCost",
    "appName":"询价单",
    "portletCodeName": "CostByItem",
    "portletName": "最新询价",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"emwplist-cost-cost-by-item-portlet"},
    {"type":"appde",
    "appCodeName":"EMEQSpareDetail",
    "appName":"备件包明细",
    "portletCodeName": "TabExpView",
    "portletName": "备件包明细",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emeqspare-detail-tab-exp-view-portlet"},
    {"type":"appde",
    "appCodeName":"EMStock",
    "appName":"库存",
    "portletCodeName": "StoclCntBar",
    "portletName": "物品库存统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"emstock-stocl-cnt-bar-portlet"},
    {"type":"appde",
    "appCodeName":"EMPlanDetail",
    "appName":"计划步骤",
    "portletCodeName": "ByPlan",
    "portletName": "计划步骤",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"emplan-detail-by-plan-portlet"},
    {"type":"appde",
    "appCodeName":"EMItemTrade",
    "appName":"物品交易",
    "portletCodeName": "YearNumByItem",
    "portletName": "物品出入库统计",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emitem-trade-year-num-by-item-portlet"},
    {"type":"appde",
    "appCodeName":"EMEQSpare",
    "appName":"备件包",
    "portletCodeName": "MainView9",
    "portletName": "备件包信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"emeqspare-info-portlet"},
    {"type":"appde",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "CalendarView",
    "portletName": "工单日历视图",
    "groupCodeName":"WoPortletCat",
    "groupName":"工单类统计",
    "portletTYpe":"VIEW","componentName":"emwo-calendar-view-portlet"},
    {"type":"appde",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "EqWoTrend",
    "portletName": "年度工单数量",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emwo-eq-wo-trend-portlet"},
    {"type":"appde",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "YearWoTrend",
    "portletName": "年度工单数量统计柱状图",
    "groupCodeName":"WoPortletCat",
    "groupName":"工单类统计",
    "portletTYpe":"CHART","componentName":"emwo-year-wo-trend-portlet"},
    {"type":"appde",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "YearWONumByPlan",
    "portletName": "生产工单统计",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emwo-year-wonum-by-plan-portlet"},
    {"type":"appde",
    "appCodeName":"EMENConsum",
    "appName":"能耗",
    "portletCodeName": "EqEnByYearLine",
    "portletName": "年度能耗",
    "groupCodeName":"EquipPortletCat",
    "groupName":"设备类统计",
    "portletTYpe":"CHART","componentName":"emenconsum-eq-en-by-year-line-portlet"},
    {"type":"appde",
    "appCodeName":"EMServiceEvl",
    "appName":"服务商评估",
    "portletCodeName": "OverallEVL",
    "portletName": "综合评估",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"emservice-evl-overall-evl-portlet"},
    {"type":"appde",
    "appCodeName":"EMEQSpareMap",
    "appName":"备件包引用",
    "portletCodeName": "ByEQ",
    "portletName": "备件包信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"emeqspare-map-by-eq-portlet"},
    {"type":"appde",
    "appCodeName":"EMWPList",
    "appName":"采购申请",
    "portletCodeName": "WpAmountFunnel",
    "portletName": "采购金额统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"emwplist-wp-amount-funnel-portlet"},
    {"type":"app",
    "appCodeName":"EMEquip",
    "appName":"设备档案",
    "portletCodeName": "EQNumPie",
    "portletName": "各类型设备数量统计",
    "groupCodeName":"EquipPortletCat",
    "groupName":"设备类统计",
    "portletTYpe":"CHART","componentName":"app-emequip-eqnum-pie-portlet"},
    {"type":"app",
    "appCodeName":"EMEQSpareMap",
    "appName":"备件包引用",
    "portletCodeName": "GridView9",
    "portletName": "备件包应用",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emeqspare-map-grid-view9-portlet"},
    {"type":"app",
    "appCodeName":"EMEQSpareDetail",
    "appName":"备件包明细",
    "portletCodeName": "GridView92",
    "portletName": "备件物品",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emeqspare-detail-grid-view9-portlet"},
    {"type":"app",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "CalendarView",
    "portletName": "工单日历视图",
    "groupCodeName":"WoPortletCat",
    "groupName":"工单类统计",
    "portletTYpe":"VIEW","componentName":"app-emwo-calendar-view-portlet"},
    {"type":"app",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "YearWoTrend",
    "portletName": "年度工单数量统计柱状图",
    "groupCodeName":"WoPortletCat",
    "groupName":"工单类统计",
    "portletTYpe":"CHART","componentName":"app-emwo-year-wo-trend-portlet"},
    {"type":"app",
    "appCodeName":"EMPODetail",
    "appName":"订单条目",
    "portletCodeName": "PeDetailLine",
    "portletName": "年度采购金额统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"app-empodetail-pe-detail-line-portlet"},
    {"type":"app",
    "appCodeName":"EMServiceEvl",
    "appName":"服务商评估",
    "portletCodeName": "EvaluateTop5",
    "portletName": "服务商-前五评估",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"app-emservice-evl-evaluate-top5-portlet"},
    {"type":"app",
    "appCodeName":"EMStock",
    "appName":"库存",
    "portletCodeName": "StoclCntBar",
    "portletName": "物品库存统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"app-emstock-stocl-cnt-bar-portlet"},
    {"type":"app",
    "appCodeName":"EMWPList",
    "appName":"采购申请",
    "portletCodeName": "WpAmountFunnel",
    "portletName": "采购金额统计",
    "groupCodeName":"ItemPortletCat",
    "groupName":"物料类统计",
    "portletTYpe":"CHART","componentName":"app-emwplist-wp-amount-funnel-portlet"},
    {"type":"app",
    "appCodeName":"EMItemTrade",
    "appName":"物品交易",
    "portletCodeName": "YearNumByItem",
    "portletName": "物品出入库统计",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-emitem-trade-year-num-by-item-portlet"},
    {"type":"app",
    "appCodeName":"EMResItem",
    "appName":"物品资源",
    "portletCodeName": "UsedByItem",
    "portletName": "最近使用记录",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"app-emres-item-used-by-item-portlet"},
    {"type":"app",
    "appCodeName":"EMWPListCost",
    "appName":"询价单",
    "portletCodeName": "CostByItem",
    "portletName": "最新询价",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"app-emwplist-cost-cost-by-item-portlet"},
    {"type":"app",
    "appCodeName":"EMEQWL",
    "appName":"设备运行日志",
    "portletCodeName": "Nearest30DayByEQ",
    "portletName": "最近30天运行",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-emeqwl-nearest30-day-by-eq-portlet"},
    {"type":"app",
    "appCodeName":"EMWO",
    "appName":"工单",
    "portletCodeName": "YearWONumByPlan",
    "portletName": "生产工单统计",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-emwo-year-wonum-by-plan-portlet"},
    {"type":"app",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Info",
    "portletName": "基本信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emservice-info-portlet"},
    {"type":"app",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Contact",
    "portletName": "联系信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emservice-contact-portlet"},
    {"type":"app",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "Finance",
    "portletName": "财务信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emservice-finance-portlet"},
    {"type":"app",
    "appCodeName":"EMService",
    "appName":"服务商",
    "portletCodeName": "File",
    "portletName": "附件信息",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emservice-file-portlet"},
    {"type":"app",
    "appCodeName":"EMEQSpareDetail",
    "appName":"备件包明细",
    "portletCodeName": "TabExpView",
    "portletName": "备件包明细",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"VIEW","componentName":"app-emeqspare-detail-tab-exp-view-portlet"}
    ]];
});